package com.xx.service.impl;

import com.xx.dao.InsertProductMapper;
import com.xx.domain.Product;
import com.xx.service.AddProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author : 徐闯 ssm_admin
 * @Date : 2021-05-12 19:05:26
 * @Description :
 **/
@Service
public class AddProductServiceImpl implements AddProductService {
    @Autowired
    private InsertProductMapper insertProductMapper;

    @Override
    @Transactional
    public int addProduct(Product product) {
        return insertProductMapper.insertProduct(product);
    }
}
